<?php echo $this->render('header.phtml');?>
		<div id="main2"> 
			<div id="content"> 
				<div class="blog" > 
					<div class="blogbody"> 
		
						<div class="articletext">
						<h3 class="title" style="margin:5px; padding:5px;"><?php echo $this->class_name; ?></h3>
							<div class="innertext1"> 
		
							<?php
							foreach ($this->paginator as $row):
							?>
								<div class="pic">
									<div class="picimg" style="padding-top:10px;">
									<?php
									$nopic = true;
									if(strstr($row["class_recom_pho"],"default_cover.jpg") == false):
									$nopic = false;
									?>
									<a href="<?php echo $this->baseUrl;?>/photo?cid=<?=$row['class_id']?>">
									<?php
									endif;
									?>
									<img src="<?php echo str_replace(BLOG_ROOT_DIR,BLOG_ROOT_URL,$row['class_recom_pho']); ?>" alt="<?php echo $row['class_name']; ?>" border="0" />
									<?php
									if(!$nopic):
									?>
									</a>
									<?php
									endif;
									?>
									</div>
									<div class="pictitle">
									<?php
									if(!$nopic):
									?>
									<a href="<?php echo $this->baseUrl;?>/photo?cid=<?=$row['class_id']?>">
									<?php
									endif;
									?>
									<?php echo $row['class_name']; ?>
									<?php
									if(!$nopic):
									?>
									</a>
									<?php
									endif;
									?>
									</div>
								</div>
								<?php 
								endforeach;
								?>		  
		
							</div>
							<br clear="all" />
						</div>
		
					</div> 
				</div>
				<div id="pages">相册总数：<b><?=$this->total_pho_list?></b>个
				<?= $this->paginationControl($this->paginator, 'Elastic', 'pagestyle.phtml'); ?>
				</div>
			</div>
		<?php echo $this->render("left.phtml");?>    
	</div>

<?php 
echo $this->render('foot.phtml');
?>
</body> 
</html>